package com.example.oversea_home_spring.service;

import com.example.oversea_home_spring.bean.*;
import com.example.oversea_home_spring.uitl.Result;

import java.util.List;

public interface OwnerService {

    //申请仓库 add
    int addHouse(Warehouse warehouse);

    //查询仓库
    List<Warehouse> getHouses(String userId);


    //更新仓库
    int updateHouse(Warehouse warehouse);
    //删除仓库
    int deleteHouse(String id);
    //添加员工

    //查询员工
    List<User> selectAllMyWorker(String userId);

    //修改员工信息
    int updateWorkerInfo(Management management);

    //查询租客
    List<User> selectAllMyTrader(String userId);

    //查询租客的仓库请求
    List<Rent> selectAllMyHouseOrder(String userId);
    //仓库批准使用
    int updateOneRent(Rent rent);
}
